package com.kgc.ljp.server.util;

import com.kgc.ljp.server.entity.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 初始化类
 */
public class Init {
    public static Map<String,Admin> adminMap = new HashMap<>();
    public static Map<String,User> userMap = new HashMap<>();
    public static Map<String,Bag> bagMap = new HashMap<>();
    public static Map<String,HeroClass> heroClassMap = new HashMap<>();
    public static Map<String,KunClass> kunClassMap = new HashMap<>();
    public static Map<String,JuQingPoint> juQingPointMap = new HashMap<>();
    public static WuJingPoint wujin = new WuJingPoint();
    static {
        Admin admin = new Admin("admin","123456");
        HeroClass heroClass = new HeroClass("C级叫花鸡",12,100,20,"吼叫(造成150%攻击力)",2);
        HeroClass heroClass1 = new HeroClass("B级叫花鸡",20,120,25,"吼叫(造成160%攻击力)",3);
        HeroClass heroClass2 = new HeroClass("A级叫花鸡",28,140,30,"吼叫(造成170%攻击力)",4);
        HeroClass heroClass3 = new HeroClass("C级鸡昵太美",14,120,23,"吟唱鸡昵太美(对地方进行强力的音波攻击150%攻击力，食锟者，对鲲类造成伤害提升20%)",2);
        HeroClass heroClass4 = new HeroClass("B级鸡昵太美",24,150,28,"吟唱鸡昵太美(对地方进行强力的音波攻击160%攻击力，食锟者，对鲲类造成伤害提升20%)",4);
        HeroClass heroClass5 = new HeroClass("A级鸡昵太美",30,180,33,"吟唱鸡昵太美(对地方进行强力的音波攻击170%攻击力，食锟者，对鲲类造成伤害提升20%)",6);
        HeroClass heroClass6 = new HeroClass("S级鸡昵太美",40,200,50,"吟唱鸡昵太美(对地方进行强力的音波攻击180%攻击力，食锟者，对鲲类造成伤害提升20%)",10);
        KunClass kunClass = new KunClass("腐鲲",14,100,20,"吐口水(吐出恶心的口水攻击敌方，敌方被恶心吐血掉固定15点)");
        KunClass kunClass1 = new KunClass("尸鲲",17,120,22,"装死(进入假死，是敌人放松警惕，发出强力一击，造成200%攻击力伤害)");
        KunClass kunClass2 = new KunClass("骨鲲",26,130,23,"幻影(召唤出幻影，进行双重打击，幻影伤害50%)");
        KunClass kunClass3 = new KunClass("广鲲",28,140,28,"耍赖(耍赖，无视敌方防御造成150%攻击力伤害)");
        KunClass kunClass4 = new KunClass("虚鲲",40,180,33,"篮球攻击(终极毁灭技，篮球攻击，导致敌人眼瞎，造成200%攻击力伤害，并掉血20点)");
        User user = new User("zhangsan","123456",10,"西门吹雪","13408213900","512324219962521124",2,heroClass,kunClass);
        JuQingPoint juQingPoint = new JuQingPoint("1-1 初见虚鲲",kunClass4,"初次遇见虚鲲，我被吓得不清");
        JuQingPoint juQingPoint1 = new JuQingPoint("1-2 遭遇腐鲲",kunClass,"魂不守舍之间，又遭遇了腐鲲");
        JuQingPoint juQingPoint2 = new JuQingPoint("1-3 尸鲲来袭",kunClass1,"刚险胜腐鲲，尸鲲仿佛闻到了气息");
        JuQingPoint juQingPoint3 = new JuQingPoint("1-4 寻找虚鲲",kunClass2,"这一切的源头一定是虚鲲，我一定要找到他");
        JuQingPoint juQingPoint4 = new JuQingPoint("1-A 广鲲护法",kunClass3,"广坤护法出来了，一场恶战在所难免");
        JuQingPoint juQingPoint5 = new JuQingPoint("1-B 决战虚鲲",kunClass4,"你终究还是来了，虚鲲不屑的说道");
        List<KunClass>  kunList= new ArrayList<>();
        List<HeroClass>  heroList= new ArrayList<>();
        adminMap.put(admin.getName(),admin);
        heroClassMap.put(heroClass.getName(),heroClass);
        heroClassMap.put(heroClass1.getName(),heroClass1);
        heroClassMap.put(heroClass2.getName(),heroClass2);
        heroClassMap.put(heroClass3.getName(),heroClass3);
        heroClassMap.put(heroClass4.getName(),heroClass4);
        heroClassMap.put(heroClass5.getName(),heroClass5);
        heroClassMap.put(heroClass6.getName(),heroClass6);
        userMap.put(user.getName(),user);
        kunClassMap.put(kunClass.getName(),kunClass);
        kunClassMap.put(kunClass1.getName(),kunClass1);
        kunClassMap.put(kunClass2.getName(),kunClass2);
        kunClassMap.put(kunClass3.getName(),kunClass3);
        kunClassMap.put(kunClass4.getName(),kunClass4);
        heroList.add(heroClass);
        heroList.add(heroClass4);
        kunList.add(kunClass);
        kunList.add(kunClass1);
        kunList.add(kunClass2);
        kunList.add(kunClass3);
        kunList.add(kunClass4);
        Bag bag = new Bag("zhangsan",heroList);
        bagMap.put("zhangsan",bag);
        wujin.setKuns(kunList);
        juQingPointMap.put(juQingPoint.getcName(),juQingPoint);
        juQingPointMap.put(juQingPoint1.getcName(),juQingPoint1);
        juQingPointMap.put(juQingPoint2.getcName(),juQingPoint2);
        juQingPointMap.put(juQingPoint3.getcName(),juQingPoint3);
        juQingPointMap.put(juQingPoint4.getcName(),juQingPoint4);
        juQingPointMap.put(juQingPoint5.getcName(),juQingPoint5);
    }
}
